<!DOCTYPE html>
<html   xmlns="http://www.w3c.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:p="http://primefaces.org/ui"
        xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head/>
    <h:body>
        <h:form>
            
            <h:panelGrid columns="2">
                <p:outputLabel for="ign" value="Required:" />
                <p:inputText id="ign" required="true" />
            </h:panelGrid>
            
            <p:fragment autoUpdate="true">
                <h:panelGrid columns="4" cellpadding="5">
                    <h:outputLabel for="name" value="Name:" />
                    <p:inputText id="name" value="#{fragmentBean.firstName}" />
                    <p:commandButton value="Submit"/>
                    <h:outputText value="#{fragmentBean.firstName}" />
                </h:panelGrid>
            </p:fragment>
            
        </h:form>
    </h:body>
</html>
